<#-- 导入模版定义文件-->
<#include "../template/template_editPage.ftl">
<@edit title="活动信息详情">
<body class="input">
	<div class="body">
		<div class="inputBar">
			<h1><span class="icon">&nbsp;</span>活动信息详情</h1>
		</div>
		<form id="inputForm" class="validate">
			<ul class="tab">
				<li>
					<input type="button" value="基本信息" hidefocus="true" />
				</li>
			</ul>
			<table class="inputTable tabContent">
				<tr>
					<th>
						活动编号:
					</th>
					<td>
						${(activityInfo.activityId)!}
					</td>
					<th>
						活动分类：
					</th>
					<td>
						<select name="activityInfo.bigClassId" class="{required: true}" id="bigClassId" style="font-size: 14px"  disabled="disabled">
						    <option value="" >请选择大类</option>
							<#if bigClassList??>
                       		<#list bigClassList as obj>
	                            <option value="${(obj.classId)!}" <#if activityInfo?? && activityInfo.bigClassId?? && activityInfo.bigClassId=="${obj.classId!}">selected="selected"</#if>>
		                              ${(obj.className)!}
                               </option>
		                        </#list>
		                    </#if>
						</select>
						<select name="activityInfo.smallClassId" id="smallClassId" class="{required: true}" style="font-size: 14px" disabled="disabled">
					   		<option>请选择小类</option>
					   		<#if smallClassList??>
                       		<#list smallClassList as obj>
					   		 <option value="${(obj.classId)!}" <#if activityInfo?? && activityInfo.smallClassId?? && activityInfo.smallClassId=="${obj.classId!}">selected="selected"</#if>>
		                              ${(obj.className)!}
                               </option>
                                </#list>
		                    </#if>
					    </select>
					    <input type="text"  name="activityInfo.smallClassSubId" id="smallClassSubId" class="formText {required: true}" disabled="disabled" value="${(activityInfo.smallClassSubId)!}" />
					</td>
                </tr>
                <tr>
                	<th>
						活动标题:
					</th>
					<td>
						${(activityInfo.activityTitle)!}
					</td>
					<th>
						关键字：
					</th>
					<td>
						 ${(activityInfo.keyword)!}
					</td>
                </tr>
                <tr>
                	<th>
						是否置顶：
					</th>
					<td>
						<input type="checkbox" name="activityInfo.isTop" id="isTop" class="{required: false}" value="1"  <#if activityInfo?? && activityInfo.isTop?? && activityInfo.isTop=="1">checked="checked"</#if>/>
					</td>
					<th>
						活动类别：
					</th>
					<td>
						<input type="checkbox" name="activityInfo.activityType" id="" class="{required: false}" value="1" <#if activityInfo?? && activityInfo.activityType?? && activityInfo.activityType?contains("1")>checked="checked"</#if>/>免费
						<input type="checkbox" name="activityInfo.activityType" id="" class="{required: false}" value="3" <#if activityInfo?? && activityInfo.activityType?? && activityInfo.activityType?contains("3")>checked="checked"</#if>/>直接购买
						<input type="checkbox" name="activityInfo.activityType" id="" class="{required: false}" value="2" <#if activityInfo?? && activityInfo.activityType?? && activityInfo.activityType?contains("2")>checked="checked"</#if>/>拼团
					</td>
                </tr>
                <tr>
					<th>
						活动费用：
					</th>
					<td>
						${(activityInfo.originalPrice)!}元--${(activityInfo.preferentialPrice)!}元
					</td>
					<th>
						报名起止时间：
					</th>
					<td>
						<input type="text" id="signBenginTime" name="activityInfo.signUpBeginTime"
                          onclick="WdatePicker({skin:'whyGreen',startDate:'%y',dateFmt:'yyyy-MM-dd'})"
                           value="${(activityInfo.signUpBeginTime?string("yyyy-MM-dd HH:mm:ss"))!}" class="Wdate fixWidth" >
				     <span>--</span> <input type="text" id="signEndTime" name="activityInfo.signUpEndTime"
                          onclick="WdatePicker({skin:'whyGreen',startDate:'%y',dateFmt:'yyyy-MM-dd'})"
                          value="${(activityInfo.signUpEndTime?string("yyyy-MM-dd HH:mm:ss"))!}" class="Wdate fixWidth">
					</td>
				</tr>
                <tr>
                	<th>
						活动地点：
					</th>
					<td>
						${(activityInfo.activityPlace)!}
					</td>
					<th>
						活动起止时间：
					</th>
					<td>
						<input type="text" id="beginTime" name="activityInfo.beginTime"
                          onclick="WdatePicker({skin:'whyGreen',startDate:'%y',dateFmt:'yyyy-MM-dd'})"
                           value="${(activityInfo.beginTime?string("yyyy-MM-dd HH:mm:ss"))!}" class="Wdate fixWidth" >
				     <span>--</span> <input type="text" id="endTime" name="activityInfo.endTime"
                          onclick="WdatePicker({skin:'whyGreen',startDate:'%y',dateFmt:'yyyy-MM-dd')"
                          value="${(activityInfo.endTime?string("yyyy-MM-dd HH:mm:ss"))!}" class="Wdate fixWidth">
					</td>
				</tr>
                <tr>
					<th>
						活动库存：
					</th>
					<td>
						${(activityInfo.stock)!}
					</td>
					<th>
						是否进行中：
					</th>
					<td>
						<#if activityInfo.isProgressing?? && activityInfo.isProgressing=="1">
							是
						<#else>
							否
						</#if>
					</td>
				</tr>
				<tr>
					<th>
						浏览量：
					</th>
					<td>
						${(activityInfo.browse)!}
					</td>
					<th>
						活动点赞数：
					</th>
					<td>
						${(activityInfo.likeNum)!}
					</td>
				</tr>
                <tr>
                	<th>
						发布人：
					</th>
					<td>
						${(activityInfo.userId)!}
					</td>
                    <th>
                                                        发布时间：
                    </th>
                    <td>
                        <#if activityInfo.publishTime?exists&&activityInfo.publishTime?is_date>
								${((activityInfo.publishTime)!)?string("yyyy-MM-dd HH:mm:ss")}
						</#if>
                    </td>
				</tr>
				 <tr>
					 <th>
						修改时间：
					</th>
					<td>
						<#if activityInfo.updateTime?exists&&activityInfo.updateTime?is_date>
								${((activityInfo.updateTime)!)?string("yyyy-MM-dd HH:mm:ss")}
						</#if>
					</td>
					<th>
						活动参数人数：
					</th>
					<td>
						${(activityInfo.partakeNum)!}
					</td>
				</tr>
				<tr>
					<th>
						预览图：
					</th>
					<td>
						<img id="imgShow1" width="160" height="100"  src="${(web_base + (activityInfo.prePhotoPath))!}"/>
					</td>
					<th>
						报名页大图：
					</th>
					<td>
						<img id="imgShow2" width="180" height="120" src="${(web_base + (activityInfo.signupPhotoPath))!}"/>
					</td>
				</tr>
				<tr>
					<th>活动简介：</th>
					<td>
						<textarea rows="8" cols="40" name="activityInfo.introduction" class="formText {}" readonly="readonly">${(activityInfo.introduction)!}</textarea>
					</td>
				</tr>
               
			</table>
			<div class="buttonArea">
				<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
			</div>
		</form>
	</div>
</body>
</@edit>
